{% extends "base.html" %}

{% block title %}金虎图书{% endblock %}
{% block head %}
    <link rel="stylesheet" type="text/css" href="{{ url_for('static',filename='css/login&register.css') }}">
{% endblock %}

{% block body %}

    <main>
        <div class="container">
            <img class="login_bg" src="{{ url_for('static',filename='images/login.png') }}">
            <form class="form" method="POST" action="{{ url_for('user.login') }}">
                <h3>金虎图书</h3>
                <p>登录</p>
                <input type="text" autofocus="autofocus" name="name" value placeholder="请输入用户名" required="required">
                <input type="password" name="password" value placeholder="请输入密码" required="required">
                <p>请选择您的身份</p>
                <span class="radio">
						<input type="radio" name="level" value="学生" checked="checked"><span>用户</span>
						<input type="radio" name="level" value="管理员"><span>管理员</span>
					</span>
                {% for message in get_flashed_messages() %}
                    <div class="form-group">
                        <div class="text-danger">{{ message }}</div>
                    </div>
                {% endfor %}
                <div class="form-group">
                    <input id="submit" type="submit" name="submit" value="登录">
                </div>

            </form>
        </div>
    </main>



{% endblock %}
{#<link rel="stylesheet" href="{{ url_for('static',filename='bootstrap/bootstrap4.6.1.min.css') }}">#}
{#<script src="{{ url_for('static', filename='js/jquery.slim.min.js') }}"></script>#}
{#<script src="{{ url_for('static', filename='js/popper.min.js') }}"></script>#}
{#<script src="{{ url_for('static', filename='js/bootstrap.min.js') }}"></script>#}
{#<script src="{{ url_for('static', filename='js/bootstrap.bundle.min.js') }}"></script>#}


